﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Site.Models.aspnet_Users>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ListMembres
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>ListMembres</h2>

<p>
    <%: Html.ActionLink("Inviter un utilisateur", "InviteUser") %>
</p>
<table>
    <tr>
        <th>
            ApplicationId
        </th>
        <th>
            UserName
        </th>
        <th>
            LoweredUserName
        </th>
        <th>
            MobileAlias
        </th>
        <th>
            IsAnonymous
        </th>
        <th>
            LastActivityDate
        </th>
        <th>
            USER_CLAN_ID
        </th>
        <th>
            USER_ROLE_ID
        </th>
        <th>
            USER_MAIL
        </th>
        <th>
            USER_LASTCONNECTION
        </th>
        <th>
            USER_NICKNAME
        </th>
        <th>
            USER_ISACTIVE
        </th>
        <th>
            USER_CITY
        </th>
        <th>
            USER_COUNTRY
        </th>
        <th>
            USER_BIRTHDAY
        </th>
        <th>
            USER_AVATAR
        </th>
        <th>
            USER_ISCONNECTED
        </th>
        <th>
            USER_CREATIONDATE
        </th>
        <th>
            USER_DELETEDATE
        </th>
        <th></th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.ApplicationId) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.UserName) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.LoweredUserName) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.MobileAlias) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.IsAnonymous) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.LastActivityDate) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_CLAN_ID) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_ROLE_ID) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_MAIL) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_LASTCONNECTION) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_NICKNAME) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_ISACTIVE) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_CITY) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_COUNTRY) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_BIRTHDAY) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_AVATAR) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_ISCONNECTED) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_CREATIONDATE) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_DELETEDATE) %>
        </td>
        <td>
            <%: Html.ActionLink("Edit", "Edit", new { id=item.UserId }) %> |
            <%: Html.ActionLink("Details", "Details", new { id=item.UserId }) %> |
            <%: Html.ActionLink("Delete", "Delete", new { id=item.UserId }) %>
        </td>
    </tr>
<% } %>

</table>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="alerts" runat="server">
</asp:Content>
